<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="root">
        <h2>学校名称:{{name}}</h2>
        <h2>学校地址:{{address}}</h2>

    </div>
    <script src="../vue.js"></script>
    <script>
        Vue.config.productionTip = false
        const vm = new Vue({
            el: '#root',
            data: {
                name: '尚硅谷hh',
                address: '北京',
                student: {
                    name: 'tom',
                    age: {
                        rage: 18,   //Vue自己会有递归 底层的数据也会被监测
                        sage: 19
                    },
                    friends:
                        [
                            { name: 'jerry', age: 35 }
                        ]
                }
            }
        })
    </script>
</body>

</html>